
#ifndef _FONTS_MANAGER_H
#define _FONTS_MANAGER_H

typedef struct Bitmap{
	int iXLeft;
	int iYTop;
	int iXMax;
	int iYMax;
	int iBpp;
	int iPitch;
	int iCurOriginX;
	int iCurOriginY;
	int iNextOriginX;
	int iNextOriginY;
	unsigned char *pucBuffer;
}T_Bitmap, *PT_Bitmap;

typedef struct FontOpr{
	char *name;
	int (*FontInit)(char *FileName, unsigned int dwFontSize);
	int (*GetFontBitmap)(unsigned int dwCode, PT_Bitmap ptBitmap);
	struct FontOpr *ptNext;
}T_FontOpr, *PT_FontOpr;

int RegisterFontOpr(PT_FontOpr ptFontOpr);
void ShowFontsOpr(void);
PT_FontOpr GetFontOpr(char *name);
int FontInit(void);
int AsciiFontRegister(void);
int GbkFontRegister(void);
int FreetypeFontRegister(void);


#endif


